package com.alibaba.citrus.ots.sales.plan.model.enums;

import java.util.Arrays;
import java.util.List;

/**
 * @author wangyibing
 * 合同量统计维度
 */
public enum ContractStatDimensionEnum {
    //货品维度
    CUSTOMER_SC_ITEM("1", "customerScItemDimension", "客户地址 - 货品维度"),
    COMPANY_SC_ITEM("2", "companyScItemDimension", "公司-货品维度"),
    SALES_ORG_SC_ITEM("3", "salesOrgScItemDimension", "销售组织-货品维度"),
    SALES_CHANNEL_SC_ITEM("4", "salesChannelScItemDimension", "销售渠道-货品维度"),
    DEPARTMENT_SC_ITEM("5", "departmentScItemDimension", "销售部门-货品维度"),
    EMPLOYEE_SC_ITEM("6", "employeeScItemDimension", "业务员-货品维度"),
    //组织维度
    COMPANY("7", "companyDimension", "公司维度"),
    SALES_ORGANIZATION("8", "salesOrganizationDimension", "销售组织维度"),
    SALES_CHANNEL("9", "salesChannelDimension", "销售渠道维度"),
    DEPARTMENT("10", "departmentDimension", "销售部门维度"),
    EMPLOYEE("11", "employeeDimension", "业务员维度"),
    CUSTOMER("12", "customerDimension", "客户地址维度"),
    //类目维度
    COMPANY_CATEGORY("13", "companyCategoryCategoryDimension", "公司-类目维度"),
    SALES_ORG_CATEGORY("14", "salesOrgCategoryDimension", "销售组织渠道-类目维度"),
    SALES_CHANNEL_CATEGORY("15", "salesChannelCategoryDimension", "销售渠道-类目维度"),
    DEPARTMENT_CATEGORY("16", "departmentCategoryDimension", "销售部门-类目维度"),
    EMPLOYEE_CATEGORY("17", "employeeCategoryDimension", "业务员-类目维度");


    private String code;
    private String dimension;
    private String desc;

    ContractStatDimensionEnum(String code, String dimension, String desc) {
        this.code = code;
        this.dimension = dimension;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }


    public String getDimension() {
        return dimension;
    }

    public String getDesc() {
        return desc;
    }

    public static List<ContractStatDimensionEnum> getList() {
        return Arrays.asList(ContractStatDimensionEnum.values());
    }

}
